// 全局常量，供其他需要的组件继承
const Constant = {
  cookie: {
    TOMSTOKEN: 'TOMS-SSO'
  },
  jobMode: {
    AUTOMATIC_MODE: 1,
    MANUAL_MODE: 2,
    PLAN_MODE: 3
  },
  jobStatus: {
    INIT: 0,
    WORKING: 1,
    PAUSE: 2,
    DONE: 3,
    FINAL: 9
  },
  jobOperationType: {
    PAUSE_ACTION: 1,
    RECOVER_ACTION: 2,
    EXECUTE_ACTION: 3
  },
  jobDetailStatus: {
    INIT: 0,
    DONE: 1
  },
  paramFileStatus: {
    // 发布成功
    PUBLISH_SUCCESS: 2,
    // 下载成功
    DOWNLOAD_SUCCESS: 3,
    // 更新成功
    UPDATE_SUCCESS: 4
  },
  auditStatus: {
    DRAFT: 1,
    AUDITING: 2,
    WITHDRAWAL: 3,
    REJECT: 4,
    PASS: 5
  },
  auditAction: {
    COMMIT: 1,
    COMMITANDPUBLISH: 2
  },
  operationType: {
    ADD: 1,
    UPDATE: 2
  },
  notificationStatus: {
    UNREAD: 1,
    READED: 2,
    CLEARED: 3
  },
  notificationLevel: {
    TRACE: 1,
    DEBUG: 2,
    INFO: 3,
    WARN: 4,
    ERROR: 5,
    FATAL: 6

  }
}

const PERMISSIONS = {
  FLY_PARAM: {
    VIEW: '10402200.QUERY',
    CONFIGURATION: '10402200.MANAGE',
    DESIGN: '10402200.MANAGE',
    PERMISSION_CONTROL: '10402200.MANAGE'
  }
}

export { Constant, PERMISSIONS }
